<?php $menu = sfYaml::loadConfig('mainMenu'); ?>

<div id="menu">
    <ul>
    <?php foreach($menu as $label => $module) : ?>
        <li><a href="<?php echo url_for($module.'/index') ?>"><?php echo $label ?></a></li>
    <?php endforeach; ?>
    </ul>
</div>